package com.my.hzb.mq;

import javax.jms.Message;
import javax.jms.TextMessage;

public class MqRecevie {

	public void onMessage(Message message){
		TextMessage textMessage = (TextMessage) message;
        try {
        	System.out.println("队列是："+textMessage.getText());
        }catch(Exception e){
        	e.printStackTrace();
        }
	}
}
